package com.fenqing.comics.service;

import java.util.concurrent.Future;
import java.util.function.Supplier;

/**
 * 异步服务
 * @author fenqing
 */
public interface IAsyncService {

    <T> Future<T> asyncMethod(Supplier<T> supplier);

    Future<Void> asyncMethod(Runnable runnable);

}
